from apps.goods.models import SKUImage
from rest_framework import serializers
from apps.goods.models import SKU


class ImageModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = SKUImage
        fields = '__all__'


# 定义 获取 sku列表的序列化器

class SKUSimpleSerializer(serializers.ModelSerializer):
    class Meta:
        model = SKU
        fields = ['id', 'name']
